let echartsOption = {
  color: ['#00AEFF', '#88D08D'],
  legend: {
    show: true,
    data: ['确诊', '感染'],
    textStyle: {//图例文字的样式
      color: '#85ABC5'
    },
    right:0,
    icon:'roundRect',
    itemWidth:8,
    itemHeight:8,
  },
  tooltip: {
    trigger: 'axis',
    backgroundColor: 'rgba(17,35,60,0.50)',
    formatter: function (params) {
      // debugger
      let seriesName_0 = params[0].seriesName
      let value0 = params[0].value
      let seriesName_1 = params.length>1?params[1].seriesName:null
      let value1 = params.length>1?params[1].value:null
      let axisValue = params[0].axisValue
      let content="<span style=\"color: #378FDD\">"+axisValue+"月：</span><br>\n" +
        "                  <span style=\"color: #378FDD\">"+seriesName_0+"条数："+value0+"</span><br>\n" + (params.length>1?("<span style=\"color: #88D08D\">"+seriesName_1+"条数："+value1+"</span><br>"):"")

      return content
    },
    borderWidth: 0,
  },
  xAxis: {
    name: "月",
    type: 'category',
    boundaryGap: false,
    data: [],
    axisTick: {
      show: false // 去除刻度线
    },
    axisLine: {show: false},

  },
  grid: {
    top: "15%",
    left: "0%",
    right: "10%",
    bottom: "3%",
    show: false, // 显示边框
    borderColor: "#012f4a", // 边框颜色
    containLabel: true // 包含刻度文字在内
  },
  yAxis: {
    name: "人",
    nameTextStyle:{
      color: '#85ABC5',
      padding:[0,0,-8,0],
    },
    type: 'value',
    show: true,
    //坐标轴
    axisLine: {
      show: false,
    },
    axisTick: {
      show: false,
    },
    axisLabel: {
      show: true,
      color: '#85ABC5'
    },
    splitLine: {
      show: true,
      lineStyle: {
        color: '#85ABC5', // 分割线颜色
        type: 'solid',
        width: 1,
        opacity: 0.02
      }
    }
  },
  series: [{
    name: '导入',
    data: [],
    type: 'line',
    showSymbol: false,
    lineStyle: {
      color: '#00AEFF',
      width: 1
    },
    areaStyle: {
      color: '#00AEFF',
      opacity: 0.2

    },
    smooth: true
  }, {
    name: '导出',
    data: [],
    type: 'line',
    showSymbol: false,
    lineStyle: {
      color: '#88D08D',
      width: 1
    },
    areaStyle: {
      color: '#88D08D',
      opacity: 0.2
    },
    smooth: true
  }]
};

export {
  echartsOption
}
